<?php
class Vars  
{  
    var $CI;  
    function vars(){  
        $this->CI = & get_instance(); 
        //用户
		$var_user_loan 		= array("0"=>"投资客", "1"=>"借款户");
		
        
        //变量可以在这里定义，或者来自配置文件，也可以去数据库中查
        
		
		
		$var_repayment_status 		= array("0"=>"未还", "1"=>"已还");
		
        $variable = array(
        					'var_repayment_status'			=> $var_repayment_status,
        					'var_user_loan'					=> $var_user_loan,
        					);
        $this->CI->load->vars($variable); 
    }  
} 
